package com.shujia.abstract_.exer2;

public class Test {

    public static void main(String[] args) {
        Heshang heshang = new SWK();
        heshang.chizhai();
        heshang.nianfou();
        heshang.qujing();


        SWK swk = (SWK) heshang;
        swk.chuyao();


        Heshang heshang1 = new ZBJ();
        heshang1.chizhai();
        heshang1.nianfou();
        heshang1.qujing();


        ZBJ zbj = (ZBJ) heshang1;
        zbj.qianma();
    }
}
